package com.mmall.service;

import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerResponse;
import com.mmall.vo.OrderVo;

import java.util.Map;

/**
 * @Author: Czh
 * @Date: 2019/5/13  14:56
 * @Version: 1.0
 **/
public interface IOrderService {


    ServerResponse pay(Long orderNo , Integer userId , String path);

    ServerResponse aliCallback(Map<String,String> params);

    ServerResponse queryOrderPayStatus(Integer userId , Long orderNo);

    ServerResponse<OrderVo> creatOrder(Integer userId , Integer shippingId);

    ServerResponse<String> cencel(Integer userId , Long orderNo);

    ServerResponse getOrderCartProduct(Integer userId);

    ServerResponse<OrderVo> getOrderDetail(Integer userId , Long orderNo);

    ServerResponse<PageInfo> getOrderList(Integer userId , int pageNum , int pageSize);


    //backend
    ServerResponse<PageInfo> manageList(Integer pageNum , Integer pageSize);

    ServerResponse<OrderVo> manageDetail(Long orderNo);

    ServerResponse<PageInfo> manageSearch(Long orderNo , Integer pageNum , Integer pageSize);

    ServerResponse<String> manageOrderSendGoods(Long orderNo);


    //hour小时以内未付款的订单，进行关闭

    void closeOrder(int hour);

    }
